package paneles;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

public class RendererHeaderHistorial extends DefaultTableCellRenderer {

	public Component getTableCellRendererComponent(JTable table,
		      Object value,
		      boolean isSelected,
		      boolean hasFocus,
		      int row,
		      int column){
	  super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column);
	  this.setBorder(BorderFactory.createLineBorder(new Color(255,0,0), 2));
	  this.setBackground(new Color(255,0,0));
	  this.setForeground(new Color(255,255,255));
	  this.setHorizontalAlignment(JLabel.CENTER);
	  this.setFont(new Font("Calibri", Font.BOLD, 14));
	  return this;
	}
}
